package com.boot2551.service;


import com.boot2551.bean.Salgrade;
import com.boot2551.mapper.SalgradeMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SalgradeS implements SalgradeMapper {
    @Resource
    public SalgradeMapper sm;
    @Override
    public int insert(Salgrade s) {
        return sm.insert(s);
    }

    @Override
    public List<Salgrade> all() {
        return sm.all();
    }

    @Override
    public int delete(int id) {
        return sm.delete(id);
    }

    @Override
    public Salgrade one(int id) {
        return sm.one(id);
    }

    @Override
    public int update(Salgrade s) {
        return sm.update(s);
    }
}
